function showFiles(section) {
    
    if(document.getElementById(section+'_filesButton').value == "Show Output Files") {
      document.getElementById(section+'_files').style.display = "block";
      document.getElementById(section+'_filesButton').value = "Hide Output Files";
    } else {
        document.getElementById(section+'_files').style.display = "none";
        document.getElementById(section+'_filesButton').value = "Show Output Files";
    }
}

function showOutput(section) {
    
    if(document.getElementById(section+'_outputButton').value == "Show Output Log") {
      document.getElementById(section+'_output').style.display = "block";
      document.getElementById(section+'_outputButton').value = "Hide Output Log";
    } else {
        document.getElementById(section+'_output').style.display = "none";
        document.getElementById(section+'_outputButton').value = "Show Output Log";
    }
}

function performGridAction(action, jobName, jobID, gridName) {
    document.getElementById("actionToPerform").value = action;
    document.getElementById("jobName").value = jobName;
    document.getElementById("jobID").value = jobID;
    document.getElementById("gridName").value = gridName;
    
    document.resultsForm.submit();
    
}